package org.dicker.biz;

import java.util.List;

import org.dicker.entity.BillInfo;
import org.dicker.entity.BillSelector;

public interface BillBiz {
	
	public int selectCount(BillSelector bs);
	
	public List<BillInfo> selectByUser(int user_id);
	
	public List<BillInfo> selectByUser(String open_id, BillSelector bs);
	
	/**查询单个账单*/
	public BillInfo selectOne(int bill_id);
	
	/**
	 * 查询全部账单信息
	 */
	public List<BillInfo> selectAll(BillSelector bs);
	
	/**
	 * （删除）
	 */
	public boolean delete(String bill_ids);
	
	/**
	 * 添加
	 * */
	public boolean add(BillInfo b);
	
	/**
	 * 添加
	 * */
	public boolean update(BillInfo b);

	
	public List<BillInfo> selectByUserTypes(String open_id,String month, BillSelector bs);
}
